<?php

function view_create() {
	return array();
}

function view(&$view, $key, $value = null) {
	if (null == $value) {
		return $view[$key];
	} else {
		$old = $view[$key];		
		$view[$key] = $value;
		return $old;
	}
}

